import {orderepost,orderepost2} from '@/apis/ajax.js'


export function getorder() {
    return orderepost('/order/order/list');
 }

 export function getuser(){
    return orderepost('/order/order/userlist');
 }

 export function getstaff(){
    return orderepost('/order/order/stafflist');
 }

 export function getwater(){
    return orderepost('/order/order/waterlist');
 }

 export function getorderdata(data){
    return orderepost('/order/order/list',data);
 }
 
 export function saveorder(data){
    return orderepost2('/order/order/save',data);
 }
 
 export function updateorderbyid(data){
    return orderepost2('/order/order/update',data);
 }
 
 export function deleteorderbyid(data){
    return orderepost2('/order/order/delete',data);
 }
 

 
 export function getprovider(){
   return orderepost('/order/purchase/providerlist');
 }

 export function getstorehouse(){
   return orderepost('/order/purchase/storehouselist');
 }

 export function getpurchase() {
   return orderepost('/order/purchase/list');
}

export function getpurchasedata(data) {
   return orderepost('/order/purchase/list',data);
}

export function savepurchase(data){
   return orderepost2('/order/purchase/save',data);
}

export function updatepurchasebyid(data){
   return orderepost2('/order/purchase/update',data);
}

export function deletepurchasebyid(data){
   return orderepost2('/order/purchase/delete',data);
}

